﻿using System;
using System.Runtime.Serialization;

namespace Pku.BookStore.Model
{
    /// <summary>
    /// 
    /// </summary>	
    [DataContract]
    public class ProductModel
    {
        #region props

        /// <summary>
        /// 图书ID
        /// </summary>
        [DataMember]
        public int BookID
        {
            get;
            set;
        }

        /// <summary>
        /// 出版社ID
        /// </summary>
        [DataMember]
        public int PublisherId
        {
            get;
            set;
        }

        /// <summary>
        /// 作者
        /// </summary>
        [DataMember]
        public string Author
        {
            get;
            set;
        }

        /// <summary>
        /// ISBN
        /// </summary>
        [DataMember]
        public string ISBN
        {
            get;
            set;
        }

        /// <summary>
        /// 成功销售数量
        /// </summary>
        [DataMember]
        public int SaleNum
        {
            get;
            set;
        }

        /// <summary>
        /// 书名
        /// </summary>
        [DataMember]
        public string BookName
        {
            get;
            set;
        }

        /// <summary>
        /// 封面地址
        /// </summary>
        [DataMember]
        public string Image
        {
            get;
            set;
        }

        /// <summary>
        /// 推荐
        /// </summary>
        [DataMember]
        public string Recommend
        {
            get;
            set;
        }

        /// <summary>
        /// 简介
        /// </summary>
        [DataMember]
        public string Introduction
        {
            get;
            set;
        }

        /// <summary>
        /// 目录
        /// </summary>
        [DataMember]
        public string Directory
        {
            get;
            set;
        }

        /// <summary>
        /// 出版时间
        /// </summary>
        [DataMember]
        public DateTime PublishDate
        {
            get;
            set;
        }

        /// <summary>
        /// 所属分类
        /// </summary>
        [DataMember]
        public int CategoryID
        {
            get;
            set;
        }

        /// <summary>
        /// 标价
        /// </summary>
        [DataMember]
        public decimal Price
        {
            get;
            set;
        }

        /// <summary>
        /// 真实售价
        /// </summary>
        [DataMember]
        public decimal TruePrice
        {
            get;
            set;
        }

        /// <summary>
        /// 增加时间
        /// </summary>
        [DataMember]
        public DateTime AddDate
        {
            get;
            set;
        }

        /// <summary>
        /// 成本价
        /// </summary>
        [DataMember]
        public decimal CostPrice
        {
            get;
            set;
        }

        /// <summary>
        /// 是否特价
        /// </summary>
        [DataMember]
        public int isSpecial
        {
            get;
            set;
        }

        /// <summary>
        /// 出版社名称
        /// </summary>
        [DataMember]
        public string PublisherName
        {
            get;
            set;
        }

        /// <summary>
        /// 分类名称
        /// </summary>
        [DataMember]
        public string CategoryName
        {
            get;
            set;
        }

        #endregion
    }

}

